<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<base target="main-frame" />
<link href="<?php echo $this->asset('/css/login.css', true);?>" media="all" rel="stylesheet" type="text/css" />
<title>框架左边导航-后台管理系统</title>
</head>

<body id="left-frame">
<div id="wrap">
  <div id="manage"></div>
  <div id="menu-wrap">
    <div id="menu">
    <?php foreach ($menu as $ctrlKey => $ctrl):?>
      <?php if ($ctrl['show'] !== false):?>
      <div class="block">
        <div class="title">
          <?php echo $ctrl['title'];?>
        </div>
        <?php if (!empty($ctrl['actions'])):?>
        <ul>
          <?php foreach ($ctrl['actions'] as $actKey => $act):?>
          <?php if ($act['show'] !== false):?>
          <li>
            <a href="<?php echo $this->createUrl($ctrlKey . '/' . $actKey);?>"><?php echo $act['title'];?></a>
          </li>
          <?php endif;?>
          <?php endforeach;?>
        </ul>
        <?php endif;?>
      </div>
      <?php endif;?>
    <?php endforeach;?>
    </div>
  </div>
  <div id="copyright">
    © 2010 by mole
  </div>
</div>
<script src="<?php echo $this->asset('/js/libjj.js');?>" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
jQuery(function($) {
	var resize = function() {
			var wh = $(window.top.frames['main-frame']).height(),
				mh = $('#manage').height(),
				ch = $('#copyright').height();

			$('#menu').height(wh - mh - ch);
		};

	resize();
	$(window).resize(resize);
});
//]]>
</script>
</body>
</html>
